c program to count number of words in a text file